package com.game.thrones.util;

import java.util.Calendar;
import java.util.Date;

/**
 * Created by zhaobin on 2016/11/11.
 */
public class TimeUtil {
    public static Date getTime(int type, int nums) {
        Date dateNow = new Date();
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(dateNow);
        calendar.add(type, nums);
        Date date = calendar.getTime();
        return date;
    }
}
